<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>RASTERSIZE</title>

<link rel="stylesheet" type="text/css" href="../../style.css">
<style type="text/css">
.style1 {
	margin-left: 40px;
}
.style2 {
	font-size: large;
}
</style>
</head>
<body>

<h2>RASTERSIZE<span class="style2"> (non inheritable)</span></h2>
<p>Specifies the element <b>User</b> size, 
  and returns the <b>Current</b> size, in pixels.</p>
<p>See the <a href="../layout_guide.html">Layout Guide</a> for more details 
  on sizes.</p>
<h3>Value</h3>
<p>&quot;<i>width</i>x<i>height</i>&quot;,
  where <i>width</i> and <i>height</i> are integer values corresponding to the horizontal and vertical size, respectively, in pixels.</p>
<p>You can also set only one of the 
  parameters by removing the other one and maintaining the separator &quot;x&quot;, 
but this is equivalent of setting the other value to 0. For example: &quot;x40&quot; (height only 
= &quot;0x40&quot;) or &quot;40x&quot; (width only = &quot;40x0&quot;).</p>
<p>When this attribute is consulted the <b>Current</b> size of the control is returned.</p>
<h3>Affects</h3>
<p>All, except menus.</p>
<h3>Notes</h3>
<p>When this attribute is set, it resets the <a href="iup_size.html">SIZE</a>
  attribute. So changes to the <a href="iup_font.html">FONT</a> attribute will 
not affect the <strong>User</strong> size of the element.</p>
<p>To obtain the last computed <strong>Natural</strong> size of the control in pixels, use the read-only 
attribute <strong>NATURALSIZE</strong>. (Since 3.6)</p>
<hr class="style1">
<p>A <b>User</b> size of &quot;0x0&quot; can be set, it can also be set using NULL.</p>
<p>If you wish to use the <b>User</b> size only as an initial size, change this attribute to NULL after the control is mapped, the returned size in 
<strong>IupGetAttribute</strong> will still be the 
  <b>Current</b> size.</p>
<p>The element is NOT immediately repositioned. Call
  <b>IupRefresh</b> to update the dialog layout. </p>
<p><b>IupMap</b> also updates the dialog layout even if it is already mapped, so 
  calling it or calling <b>IupShow</b>, 
  <b>IupShowXY</b> or 
  <b>IupPopup</b> (they all call 
  <b>IupMap</b>) will also update the dialog layout.</p>
<p>See the <a href="../layout_guide.html">Layout Guide</a> for mode details 
  on sizes.</p>
<h3>See Also</h3>
<p><a href="iup_size.html">SIZE</a>, <a href="iup_font.html">FONT</a></p>

</body>

</html>